<template>
	<view class="booking-contener">
		<view class="location-list-box">
			<view class="booking-every-room">
				<view class="booking-every-left">
					<span style="font-size: 32rpx;font-weight: 550;margin-left:16rpx">翻斗花园-一楼-西区</span>
					<span style="color: #a5a89e;margin-left:16rpx">开放时间 07:00-22:00</span>
					<span style="margin-left:16rpx">
						座位数
						<span style="color: #1008ff;">100</span>
					</span>
				</view>
				<view class="booking-every-right">
					<button class="booking-btn" @click="chooseSeat">
						<uni-icons type="wallet" color="#1008ff" size="20"></uni-icons>
						选座
					</button>
				</view>
			</view>
			<view class="booking-every-room">哈哈</view>
			<view class="booking-every-room">哈哈</view>
			<view class="booking-every-room">哈哈</view>
			<view class="booking-every-room">哈哈</view>
		</view>
	</view>
</template>

<script setup>
import { ref, reactive, computed, nextTick, watch, watchEffect, onMounted } from 'vue';
// 功能函数：跳转具体选座页面
const chooseSeat = () =>{
	uni.navigateTo({
		url:'/pages/booking/chooseSeat'
	})
}
</script>

<style lang="scss" scoped>
// 纵向flex 横轴最左边 纵轴相隔一段距离
@mixin flex1 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-around;
}
// 总页面容器
.booking-contener {
	min-height: 1146.5rpx;
	background: rgb(239, 242, 250);
}
// 图书室列表
.location-list-box {
	display: flex;
	flex-direction: column;
}
// 单个图书室
.booking-every-room {
	height: 180rpx;
	background-color: #ffffff;
	margin: 10rpx 20rpx 20rpx 20rpx;
	border-radius: 10rpx;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
// 单个图书室：左侧flex布局
.booking-every-left {
	height: 100%;
	font-size: 26rpx;
	@include flex1;
}
// 单个图书室：右侧flex布局
.booking-every-right {
	margin-left: 10rpx;
	display: flex;
	.booking-btn {
		width: 130rpx;
		height: 60rpx;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
		align-content: center;
		flex-wrap: wrap;
		font-size: 24rpx;
		margin-right: 24rpx;
		color: #1008ff;
		border: 1px solid #1008ff;
	}
}
</style>
